Oh gcc4 ....how you complain soo. This patch fixes compile with gcc4
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 6 Jul 2005 08:46:38 +0000 (08:46 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 6 Jul 2005 08:46:38 +0000 (08:46 +0000)
where an unintialized variable is used in a function.

Signed-off-by: Jerone Young <jerone@gmail.com>
xen/arch/x86/vmx_io.c

index dba622d546c9642f9582c2b911b8545e87e27dbc..83e79d6bbad10b1e19237e8ac1f0aa37d5480a03 100644 (file)
@@ -621,7 +621,7 @@ static inline int irq_masked(unsigned long eflags)
 
 void vmx_intr_assist(struct vcpu *v) 
 {
-    int intr_type;
+    int intr_type = 0;
     int highest_vector = find_highest_pending_irq(v, &intr_type);
     unsigned long intr_fields, eflags, interruptibility, cpu_exec_control;